﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="aboutus.ascx.cs" Inherits="mwc_admin_aboutus" %>
<div style="padding:10px;">
    <asp:Panel ID="pn_list_about" runat="server">
        <p style="font-weight:bold;font-size:12pt;">List About Us:</p>
        <br />
        <asp:GridView ID="about_list" runat="server" AutoGenerateColumns="false" style="width:100%;">
            <Columns>
                <asp:BoundField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="id" SortExpression="id" HeaderText="ID"/>
                <asp:BoundField HeaderStyle-HorizontalAlign="Center" DataField="name" SortExpression="name" HeaderText="Name" />
                <asp:HyperLinkField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" HeaderText="Edit" Text="Change" DataNavigateUrlFields="id" DataNavigateUrlFormatString="~/mwc_admin/Panel.aspx?option=aboutus&task=edit&id={0}" />
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <asp:Panel ID="pn_detail_about" runat="server">
        <table>
            <tr>
                <td>Name: </td><td><asp:TextBox ID="about_name" runat="server" style="width:50%;" /></td>
            </tr>
            <tr>
                <td>Position: </td>
                <td><asp:TextBox ID="about_pos" runat="server" style="width:50%;" /></td>
            </tr>
            <tr>
                <td>Image: </td>
                <td>
                    <script type="text/javascript">
                        function showInfo() {
                            alert("OK");
                        }
                    </script>
                    <ACT:AsyncFileUpload ID="AsyncFileUpload1" 
                        OnUploadedComplete="uploadComplete" 
                        OnClientUploadComplete="showInfo" 
                        runat="server" 
                        ThrobberID="abc" 
                        UploadingBackColor="LightBlue"
                        ErrorBackColor="Red"
                        CompleteBackColor="Green"
                        UploaderStyle="Modern"
                    />
                    
                </td>
            </tr>
            <tr>
                <td>Intro Text:</td>
                <td>
                    <CKEditor:CKEditorControl ID="about_introtext" runat="server"></CKEditor:CKEditorControl>
                </td>
            </tr>
            <tr>
                <td>Enable:</td>
                <td><asp:CheckBox ID="about_enable" runat="server" Checked="true" /></td>
            </tr>
        </table>
        <br />
        <div style="text-align:center">
            <asp:Button ID="about_save" runat="server" Text="Save" style="padding: 0 15px 0 15px;" OnClick="saveAbout" /><asp:Button ID="about_cancel" runat="server" Text="Cancel" style="padding: 0 15px 0 15px;" OnClick="aboutCancel" />
        </div>
    </asp:Panel>
</div>
